package com.smartpro.mis.modular.business.neo4jEntity;

import org.neo4j.ogm.annotation.*;

@RelationshipEntity(type = RelationshipEnum.GROUP_BUY)
public class GroupBuyRelationship {
    @GraphId
    private Long id;
    public GroupBuyRelationship(Long id){this.id =id;}

    public GroupBuyRelationship(String createTime, N4jUser groupBuyLeader, N4jUser n4jUser) {
        this.createTime = createTime;
        this.groupBuyLeader = groupBuyLeader;
        this.n4jUser = n4jUser;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }



    private String createTime;


    @StartNode
    private N4jUser groupBuyLeader;

    @EndNode
    private N4jUser n4jUser;

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public N4jUser getGroupBuyLeader() {
        return groupBuyLeader;
    }

    public void setGroupBuyLeader(N4jUser groupBuyLeader) {
        this.groupBuyLeader = groupBuyLeader;
    }

    public N4jUser getN4jUser() {
        return n4jUser;
    }

    public void setN4jUser(N4jUser n4jUser) {
        this.n4jUser = n4jUser;
    }




}
